import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import echarts from 'echarts'
import 'echarts/map/js/china'

// 自适应 rem 缩放
// import "ys-lib-flesible";
import "./assets/font/font_01/iconfont.css";
import "./assets/font/font_02/iconfont.css";

//全局注册
import "./plugins/common.js";

//基本样式初始化
import "./assets/normalize.css";

// 引入ysUI组件库
import ysUI from "ys-ui";
import "ys-ui/dist/styles/ys-ui.css";

// 修改主题色配置
import "./theme/index.less";

//图片预览
import preview from "vue-photo-preview"; 
import "vue-photo-preview/dist/skin.css";
var options = {
  fullscreenEl: false 
};
Vue.use(preview, options); 

// 设置默认皮肤
import { setStystemTheme } from "./utils/init_commitData";
setStystemTheme();

//打印插件
import Print from 'vue-print-nb'
Vue.use(Print);
 
//拖拽插件

import VueDragZone from 'vue-drag-zone'
Vue.use(VueDragZone)

Vue.use(ysUI);
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
